import request from '@/utils/request'

// 查询红娘业绩列表
export function listPerformance(query) {
  return request({
    url: '/performance/performance/list',
    method: 'get',
    params: query
  })
}

// 查询红娘业绩详细
export function getPerformance(performanceId) {
  return request({
    url: '/performance/performance/' + performanceId,
    method: 'get'
  })
}

// 新增红娘业绩
export function addPerformance(data) {
  return request({
    url: '/performance/performance',
    method: 'post',
    data: data
  })
}

// 修改红娘业绩
export function updatePerformance(data) {
  return request({
    url: '/performance/performance',
    method: 'put',
    data: data
  })
}

// 删除红娘业绩
export function delPerformance(performanceId) {
  return request({
    url: '/performance/performance/' + performanceId,
    method: 'delete'
  })
}

// 根据红娘ID查询红娘详细信息
export function getMatchmakerInfo(matchmakerId) {
  return request({
    url: '/performance/performance/matchmaker/' + matchmakerId,
    method: 'get'
  })
}
